<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div {
				/* 定义一个弹性盒子 */
				display: flex;
				width: 80%;
				height: 300px;
				background-color: beige;

				/* 设置主轴方向 */
				flex-direction: row;
				/* flex-direction: column; */
				/* flex-direction: row-reverse; */

				/* 设置X轴上的排列方式 */
				
				/* 从左到右 */
				/* justify-content: flex-start; */
				/* 从右到左 */
				/* justify-content: flex-end; */
				/* 剧中对齐 */
				/* justify-content: center; */
				/* 先靠两边，再平均分剩余空间 */
				/* justify-content: space-between; */
				/* 平均分剩余空间 */
				justify-content: space-around;

			}

			div span {
				width: 100px;
				height: 100px;
				background-color: orange;
				margin: 2px;
			}
		</style>
	</head>
	<body>
		<div>
			<span>1</span>
			<span>2</span>
			<span>3</span>
		</div>
	</body>
</html>
